/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Manager_Image_Utils;

import java.io.File;
import java.io.FileFilter;
import java.util.List;

/**
 *
 * @author Admin
 */
public class ImageFileFilter implements FileFilter
{
  private final String[] okFileExtensions = 
    new String[] {".jpg", ".png", ".gif",".jpeg",".jpg"};

  public boolean accept(File file)
  {
    for (String extension : okFileExtensions)
    {
      if (file.getName().toLowerCase().endsWith("."+extension))
      {
        return true;
      }
    }
    return false;
  }
  
}
